package fit.conceptmap.dao;

import java.util.List;
import java.util.Map;

import fit.conceptmap.beans.JsonBean;
import fit.conceptmap.entities.Concept;
import fit.conceptmap.entities.Conceptmap;
import fit.conceptmap.entities.Link;
import fit.conceptmap.entities.Node;
import fit.conceptmap.entities.Relationship;

public interface IDrawDao {
	public boolean addDraw(String username, JsonBean json);
	public boolean addConceptMaps(String username, JsonBean json);
	public List<Conceptmap> getListConcepmapByUsername(String username);
	public boolean addConcept(Map<Integer, Concept> concepts, JsonBean json);
	public boolean addNode(Map<Integer, Concept> concepts, JsonBean json, String username);
	public boolean addRelationship(List<String> relationID, Map<Integer, Concept> concepts, JsonBean json, String username, String conceptmapId);
	public boolean addLink(List<String> relationID, JsonBean json, String username);
	public List<Relationship> getListRelationshipByConceptMapsId(String conceptMapsId);
	public List<Concept> getListConceptByConceptMapId(List<String> listId);
	public List<Node> getListNodeByListConceptId(List<String> listId);
	public List<Link> getListLinkByListRelationshipId(List<String> listId);
}